//
//  InforViewController.m
//  blackjack
//
//  Created by Thi Nguyen Tran on 3/15/10.
//  Copyright 2010 Epsilon. All rights reserved.
//

#import "InforViewController.h"


@implementation InforViewController

@synthesize delegate;

- (IBAction)backBtnTouched {
	[delegate backToMainMenu];
}

- (void)viewDidLoad {
    [super viewDidLoad];
	[mainView setBackgroundColor:[UIColor clearColor]];
	//[mainView setAutoresizesSubviews:NO];
	//[mainView setCenter:CGPointMake(160,240)];
	[mainView setClipsToBounds:YES];
	[mainView setScrollEnabled:YES];
	[mainView setPagingEnabled:YES];
	[mainView setCanCancelContentTouches:NO];
	[mainView setIndicatorStyle:UIScrollViewIndicatorStyleWhite];
	
	UIImageView *imgView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"basic_guide.png"]]; 
	CGRect frame = imgView.frame;
	frame.origin = CGPointMake(0, 0);
	imgView.frame = frame;
	[mainView addSubview:imgView];
	[imgView release];
	
	
	UIButton *secBtn = [UIButton buttonWithType:UIButtonTypeRoundedRect];
	secBtn.frame =  CGRectMake(334, 15, 72, 37);
	[secBtn setImage:[UIImage imageNamed:@"back_btn.png"] forState:UIControlStateNormal];
	[secBtn addTarget:self action:@selector(backBtnTouched) forControlEvents:UIControlEventTouchUpInside];
	[mainView addSubview:secBtn];
	
	
	imgView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"advance_layout.png"]];
	frame = imgView.frame;
	frame.origin = CGPointMake(320, 0);
	imgView.frame = frame;
	[mainView addSubview:imgView];
	[imgView release];
	
	UIImageView * nextImg = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"next.png"]];
	frame = nextImg.frame;
	frame.origin = CGPointMake(220, 170);
	nextImg.frame = frame;
	[mainView addSubview:nextImg];
	[nextImg release];
	
	nextImg = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"prev.png"]];
	frame = nextImg.frame;
	frame.origin = CGPointMake(294, 170);
	nextImg.frame = frame;
	[mainView addSubview:nextImg];
	[nextImg release];
	
	[mainView setContentSize:CGSizeMake(640, 480)];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
	
}

- (void)dealloc {
    [super dealloc];
}


@end
